<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>data数据对象</title>
</head>

<body>
    <div id="div">
        {{message}}
        <p>
            {{school}}
        </p>
        <p>
            {{school.name}}
        </p>
        <p>
            {{school.address}}
        </p>
        <p>
            {{age}}
        </p>
        <p>
            {{age[0]}}
        </p>
        <p>
            {{age[1]}}
        </p>
        <p>
            {{age[2]}}
        </p>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el: '#div',
            data: {
                message: 'Hello Vue!',
                school: {
                    name: '九江职业技术学院',
                    address: '九江市'
                },
                age: [10, 20, 30]
            },
        })
    </script>

</body>

</html>